package com.csust.automaticteach.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 资源表
 * @TableName t_resource
 */
@TableName(value ="t_resource")
@Data
public class Resource implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 资源名称
     */
    @TableField(value = "name")
    private String name;

    /**
     * 资源描述
     */
    @TableField(value = "description")
    private String description;

    /**
     * 资源分类
     */
    @TableField(value = "category")
    private String category;

    /**
     * 创建用户id
     */
    @TableField(value = "userId")
    private Long userId;

    /**
     * 资源的url
     */
    @TableField(value = "fileUrl")
    private String fileUrl;
    /**
     * 资源大小
     */
    @TableField(value = "fileSize")
    private String fileSize;
    /**
     * 资源类型
     */
    @TableField(value = "type")
    private String type;
    /**
     * spaceId
     */
    @TableField(value = "spaceId")
    private Long spaceId;

    /**
     * 状态（1草稿/2已发布/3下架/4等待中/5生成中/6失败）
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 发布时间
     */
    @TableField(value = "publishTime")
    private Date publishTime;

    /**
     * 修改时间
     */
    @TableField(value = "editTime")
    private Date editTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}